<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> 
<head>
<%@ include file="../../include/easyui.jsp" %>
<%@ include file="../../include/pForm.jsp" %>
<title>更多项目详情</title>
<script>
var configFn = {};
$(function(){
	var data = fn.getDialogData();
	$('#easyuiForm').form("load",data);
	
	$('#easyui-tabs').tabs({    
	    border:false,    
	    onSelect:function(title){
	    	var tab = $('#easyui-tabs').tabs('getSelected');    
	    	if (tab && tab.find('iframe').length > 0) {
	    	    var curTabWin = tab.find('iframe')[0].contentWindow;
	    	    if(curTabWin)
	    	    	curTabWin.location.reload(true);
	    	 }
	    }    
	});  
	
	//当订单编号不存在是根据单项工程路段编号异步查询
	/*if(data.contractNo){
		$("#contractFrame").attr('src','/console/project/rewrite/total_contract?contractNo='+data.contractNo);
	}else{
		var _pNo = '${param.pNo}';
		$.getJSON('/console/com.fs.jzzn.pojo.Project/json', {pNo: _pNo } , function(obj){
			if(obj){
				var contractNo = obj.contractNo;
				$("#contractFrame").attr('src','/console/project/rewrite/total_contract?contractNo='+contractNo);
			}
		}); 
	}*/
	//configFn.subContractFrame = function(contractNo){
		//$("#subContractFrame").attr('src','/console/project/rewrite/total_contract?contractNo='+contractNo);
	//};
});
</script>
</head>
<body class="easyui-layout">  
	<div data-options="region:'north',split:true" style="height:50px;">
		<!-- 查询条件表单，根据配置进行替换  -->
		<form id="easyuiForm" >
		 <div style="margin-top:5px;margin-left:10px;float:left;">
		  <input class="easyui-textbox" name="pNo" style="width:370px;" data-options="label:'路段编号:'" />
		 </div>
		 <div style="margin-top:5px;margin-left:10px;float:left;">
		  <input class="easyui-textbox" name="pName" style="width:370px;" data-options="label:'项目名称:'" />
		 </div>
		 <div style="margin-top:5px;margin-left:10px;float:left;">
		  <input class="easyui-textbox" name="contractNo" style="width:370px;" data-options="label:'订单编号:'" />
		 </div>
		</form>
	</div>   
    <div data-options="region:'center'" style="padding:5px;background:#eee;">
    	<div id="easyui-tabs" class="" data-options="" style="width:100%;height:100%">
			<div title="单项工程信息" data-options="closable:false" style="padding:10px;overflow:hidden;">
				<!-- 
				<iframe scrolling="yes" frameborder="0"  src="/console/project/rewrite/total_project?pNo=${param.pNo}" style="width:100%;height:100%;"></iframe>
				 -->
				 <iframe scrolling="yes" frameborder="0"  src=" /console/project/view?pNo=${param.pNo}" style="width:100%;height:100%;"></iframe>
			</div>
			<div title="订单合同信息" data-options="closable:false" style="padding:10px;overflow:hidden;">
				<iframe id="contractFrame" scrolling="yes"  src=" /console/contract/view?pNo=${param.pNo}"  frameborder="0"  style="width:100%;height:100%;"></iframe>
			</div>
			<div title="施工信息" data-options="closable:false" style="padding:10px;overflow:hidden;">
				<iframe scrolling="yes" frameborder="0"  src="/console/information/view?pNo=${param.pNo}" style="width:100%;height:100%;"></iframe>
			</div>
			<div title="分包合同信息" data-options="closable:false" style="padding:10px;overflow:hidden;">
				<iframe id="subContractFrame" scrolling="yes"  src="/console/contract/view?pNo=${param.pNo}&subContract=true"  frameborder="0"  style="width:100%;height:100%;"></iframe>
			</div>
			<div title="收入信息" data-options="closable:false" style="padding:10px;overflow:hidden;">
				<iframe scrolling="yes" frameborder="0"  src="/console/project/rewrite/total_income?pNo=${param.pNo}" style="width:100%;height:100%;"></iframe>
			</div>
			<div title="支出信息" data-options="closable:false" style="padding:10px;overflow:hidden;">
				<iframe scrolling="yes" frameborder="0"  src="/console/project/rewrite/total_expense?pNo=${param.pNo}" style="width:100%;height:100%;"></iframe>
			</div>
			<div title="开票信息" data-options="closable:false" style="padding:10px;overflow:hidden;">
				<iframe scrolling="yes" frameborder="0"  src="/console/project/rewrite/total_invoice?pNo=${param.pNo}" style="width:100%;height:100%;"></iframe>
			</div>
			
			<div title="施工计划" data-options="closable:false" style="padding:10px;overflow:hidden;">
				<iframe scrolling="yes" frameborder="0"  src="/console/project/rewrite/total_plan?pNo=${param.pNo}" style="width:100%;height:100%;"></iframe>
			</div>
			
			<div title="工程进度" data-options="closable:false" style="padding:10px;overflow:hidden;">
				<iframe scrolling="yes" frameborder="0"  src="/console/project/rewrite/total_trace?pNo=${param.pNo}" style="width:100%;height:100%;"></iframe>
			</div>
			
			<div title="变更记录" data-options="closable:false" style="padding:10px;overflow:hidden;">
				<iframe scrolling="yes" frameborder="0"  src="/console/project/rewrite/total_alteration?pNo=${param.pNo}" style="width:100%;height:100%;"></iframe>
			</div>
			
			<div title="延期记录" data-options="closable:false" style="padding:10px;overflow:hidden;">
				<iframe scrolling="yes" frameborder="0"  src="/console/project/rewrite/total_postpone?pNo=${param.pNo}" style="width:100%;height:100%;"></iframe>
			</div>
			
		</div>
    </div>   
<script type="text/javascript">
	$(function(){
	});
</script>
</body>
</html>